public class ChannelHandlerReadSubscription extends Object
All parameters where grouped in this class so that if something needs to be added or removed the impact is lessened. The class is immutable so that the ChannelHandler can cache it for reference.
Constructor and Description |
---|
ChannelHandlerReadSubscription(ValueCache<?> valueCache,
WriteFunction<Exception> exceptionWriteFunction,
WriteFunction<Boolean> connectionWriteFunction)
Creates the parameters for a new subscription.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
WriteFunction<Boolean> |
getConnectionWriteFunction()
The write function for the connection flag.
|
WriteFunction<Exception> |
getExceptionWriteFunction()
The write function for exceptions.
|
ValueCache<?> |
getValueCache()
The cache where to write the value.
|
int |
hashCode() |
public ChannelHandlerReadSubscription(ValueCache<?> valueCache, WriteFunction<Exception> exceptionWriteFunction, WriteFunction<Boolean> connectionWriteFunction)
valueCache
- the cache where to write the valueexceptionWriteFunction
- the write function to dispatch exceptionsconnectionWriteFunction
- the connection write function to dispatch exceptionspublic ValueCache<?> getValueCache()
public WriteFunction<Exception> getExceptionWriteFunction()
public WriteFunction<Boolean> getConnectionWriteFunction()
Copyright © 2010–2015. All rights reserved.