com.sitewhere.grpc.client.spi.IGrpcChannel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sitewhere-grpc-client Show documentation
Show all versions of sitewhere-grpc-client Show documentation
SiteWhere gRPC Client Components
/*
* Copyright (c) SiteWhere, LLC. All rights reserved. http://www.sitewhere.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package com.sitewhere.grpc.client.spi;
import com.sitewhere.spi.microservice.lifecycle.ITenantEngineLifecycleComponent;
import io.grpc.ManagedChannel;
/**
* Connected channel to a remote GRPC server.
*
* @param
* @param
*/
public interface IGrpcChannel extends ITenantEngineLifecycleComponent {
/**
* Get managed channel.
*
* @return
*/
public ManagedChannel getChannel();
/**
* Create blocking version of stub.
*
* @return
*/
public B createBlockingStub();
/**
* Get blocking version of stub.
*
* @return
*/
public B getBlockingStub();
/**
* Create asynchronous version of stub.
*
* @return
*/
public A createAsyncStub();
/**
* Get asynchronous version of stub.
*
* @return
*/
public A getAsyncStub();
}