All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bazaarvoice.ostrich.pool.ServiceHandle Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package com.bazaarvoice.ostrich.pool;

import com.bazaarvoice.ostrich.ServiceEndPoint;

import static com.google.common.base.Preconditions.checkNotNull;

class ServiceHandle {
    private final S _service;
    private final ServiceEndPoint _endPoint;

    public ServiceHandle(S service, ServiceEndPoint endPoint) {
        _service = checkNotNull(service);
        _endPoint = checkNotNull(endPoint);
    }

    public S getService() {
        return _service;
    }

    public ServiceEndPoint getEndPoint() {
        return _endPoint;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy