Package org.ldaptive.transport
Class MessageFunctional<Q extends Request,S extends Result>
- java.lang.Object
-
- org.ldaptive.transport.MessageFunctional<Q,S>
-
- Type Parameters:
Q
- type of requestS
- type of result
- Direct Known Subclasses:
MessageFunctional.BiConsumer
,MessageFunctional.Consumer
,MessageFunctional.Function
public abstract class MessageFunctional<Q extends Request,S extends Result> extends Object
Base class for processing a message that is initialized with the request and connection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessageFunctional.BiConsumer<Q extends Request,S extends Result,T,U>
Marker class to inject connection and request properties.static class
MessageFunctional.Consumer<Q extends Request,S extends Result,T>
Marker class to inject connection and request properties.static class
MessageFunctional.Function<Q extends Request,S extends Result,T,R>
Marker class to inject connection and request properties.
-
Field Summary
Fields Modifier and Type Field Description private Connection
connection
Connection the request occurred on.private OperationHandle<Q,S>
handle
Operation handle that sent the request.private Q
request
Request that produced the message.
-
Constructor Summary
Constructors Constructor Description MessageFunctional()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
getConnection()
OperationHandle<Q,S>
getHandle()
Q
getRequest()
void
setConnection(TransportConnection conn)
void
setHandle(OperationHandle<Q,S> h)
void
setRequest(Q req)
-
-
-
Field Detail
-
connection
private Connection connection
Connection the request occurred on.
-
handle
private OperationHandle<Q extends Request,S extends Result> handle
Operation handle that sent the request.
-
-
Method Detail
-
getConnection
public Connection getConnection()
-
setConnection
public void setConnection(TransportConnection conn)
-
getRequest
public Q getRequest()
-
setRequest
public void setRequest(Q req)
-
getHandle
public OperationHandle<Q,S> getHandle()
-
setHandle
public void setHandle(OperationHandle<Q,S> h)
-
-