public static interface AccessPredicate.SocketPredicate extends Predicate<SocketAddress>
Predicate
s for SocketAddress
es.Modifier and Type | Method and Description |
---|---|
static AccessPredicate.SocketPredicate |
inet()
Checks that the given socket address is a
InetSocketAddress . |
static AccessPredicate.SocketPredicate |
inProcess()
Checks that the given socket address is an
InProcessSocketAddress . |
static AccessPredicate.SocketPredicate |
inProcess(String name)
Checks that the given socket address is an
InProcessSocketAddress with the given name. |
static AccessPredicate.SocketPredicate |
type(Class<? extends SocketAddress> type)
Checks the type of the socket address.
|
static <T> AccessPredicate.SocketPredicate |
typeAnd(Class<T> type,
Predicate<T> condition)
Checks the type of the socket address and the given condition.
|
static AccessPredicate.SocketPredicate type(Class<? extends SocketAddress> type)
type
- The expected class of the socket address.static <T> AccessPredicate.SocketPredicate typeAnd(Class<T> type, Predicate<T> condition)
T
- The expected type of the socket address.type
- The expected class of the socket address.condition
- The additional condition the socket has to pass.static AccessPredicate.SocketPredicate inProcess()
InProcessSocketAddress
.static AccessPredicate.SocketPredicate inProcess(String name)
InProcessSocketAddress
with the given name.name
- The name of in process connection.static AccessPredicate.SocketPredicate inet()
InetSocketAddress
.