mirror of https://github.com/grpc/grpc-java.git
inprocess: mark all classes final
This commit is contained in:
parent
859d211b6e
commit
51ce204f53
|
|
@ -31,7 +31,7 @@ import java.net.SocketAddress;
|
|||
* <p>The channel is intended to be fully-featured, high performance, and useful in testing.
|
||||
*/
|
||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1783")
|
||||
public class InProcessChannelBuilder extends
|
||||
public final class InProcessChannelBuilder extends
|
||||
AbstractManagedChannelImplBuilder<InProcessChannelBuilder> {
|
||||
/**
|
||||
* Create a channel builder that will connect to the server with the given name.
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import java.util.concurrent.ConcurrentMap;
|
|||
import javax.annotation.concurrent.ThreadSafe;
|
||||
|
||||
@ThreadSafe
|
||||
class InProcessServer implements InternalServer {
|
||||
final class InProcessServer implements InternalServer {
|
||||
private static final ConcurrentMap<String, InProcessServer> registry
|
||||
= new ConcurrentHashMap<String, InProcessServer>();
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import java.util.List;
|
|||
*/
|
||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1783")
|
||||
public final class InProcessServerBuilder
|
||||
extends AbstractServerImplBuilder<InProcessServerBuilder> {
|
||||
extends AbstractServerImplBuilder<InProcessServerBuilder> {
|
||||
/**
|
||||
* Create a server builder that will bind with the given name.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import java.net.SocketAddress;
|
|||
/**
|
||||
* Custom SocketAddress class for {@link InProcessTransport}.
|
||||
*/
|
||||
public class InProcessSocketAddress extends SocketAddress {
|
||||
public final class InProcessSocketAddress extends SocketAddress {
|
||||
private static final long serialVersionUID = -2803441206326023474L;
|
||||
|
||||
private final String name;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ import javax.annotation.concurrent.GuardedBy;
|
|||
import javax.annotation.concurrent.ThreadSafe;
|
||||
|
||||
@ThreadSafe
|
||||
class InProcessTransport implements ServerTransport, ConnectionClientTransport {
|
||||
final class InProcessTransport implements ServerTransport, ConnectionClientTransport {
|
||||
private static final Logger log = Logger.getLogger(InProcessTransport.class.getName());
|
||||
|
||||
private final LogId logId = LogId.allocate(getClass().getName());
|
||||
|
|
|
|||
Loading…
Reference in New Issue