public class ServerConnectionHandler extends AbstractServerConnectionHandler implements ItemChangeListener, FolderListener
| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION |
connectionInformation, ioSession, messenger, pingService| Constructor and Description |
|---|
ServerConnectionHandler(Hive hive,
IoSession ioSession,
ConnectionInformation connectionInformation) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUp() |
void |
dataChanged(String itemId,
Variant value,
Map<String,Variant> attributes,
boolean cache)
A change on the data item occurred.
|
void |
folderChanged(Location location,
List<Entry> added,
Set<String> removed,
boolean full) |
protected void |
handleCreateSessionComplete(Future<Session> future,
Message message,
Properties props) |
void |
subscriptionChanged(String item,
SubscriptionState subscriptionState)
Indicating a change in the item subscription
|
exceptionCaught, getBooleanProperty, getIntProperty, getMessageTimeout, getPingPeriod, getTransportProperties, messageReceived, messageSent, modifyFilterChain, replySessionCreated, sendPrivilegeChange, sessionClosed, sessionConfigured, sessionCreated, sessionIdle, sessionOpened, startSessionpublic static final String VERSION
public ServerConnectionHandler(Hive hive, IoSession ioSession, ConnectionInformation connectionInformation)
protected void handleCreateSessionComplete(Future<Session> future, Message message, Properties props)
protected void cleanUp()
cleanUp in class AbstractServerConnectionHandlerpublic void dataChanged(String itemId, Variant value, Map<String,Variant> attributes, boolean cache)
ItemChangeListenerdataChanged in interface ItemChangeListeneritemId - The item id that changedvalue - The new value, or null if the value did not
changeattributes - The attributes that changed, may be null if no
attribute change at allcache - Indicating that the change came from the cache, this means
that the change was not triggered by a device and that
all attribute where sent, not only the changed onespublic void subscriptionChanged(String item, SubscriptionState subscriptionState)
ItemChangeListenersubscriptionChanged in interface ItemChangeListeneritem - The item ID that changedsubscriptionState - the new subscription statepublic void folderChanged(Location location, List<Entry> added, Set<String> removed, boolean full)
folderChanged in interface FolderListener