public abstract class ServiceServerConnection<T extends Session,S extends Service<T>> extends ServerConnection
| Modifier and Type | Field and Description |
|---|---|
protected S |
service |
protected T |
session |
statistics| Constructor and Description |
|---|
ServiceServerConnection(IoSession session,
S service) |
| Modifier and Type | Method and Description |
|---|---|
protected CallbackHandler |
createCallbackHandler(java.lang.Long callbackHandlerId) |
protected |
createSession(java.util.Properties properties,
CallbackHandler callbackHandler) |
void |
dispose() |
protected void |
failSession(java.lang.Exception e) |
protected void |
handleCreateSession(CreateSession message) |
protected void |
initializeSession(T session) |
protected SessionPrivilegesChanged |
makePrivilegeChangeMessage(java.util.Set<java.lang.String> privileges) |
void |
messageReceived(java.lang.Object message) |
protected void |
setSession(java.util.concurrent.Future<T> sessionFuture) |
getSslSession, handleMessageReceived, requestClose, sendMessagepublic ServiceServerConnection(IoSession session,
S service)
public void messageReceived(java.lang.Object message)
throws java.lang.Exception
messageReceived in class ServerConnectionjava.lang.Exceptionprotected void handleCreateSession(CreateSession message)
protected void failSession(java.lang.Exception e)
protected void setSession(java.util.concurrent.Future<T> sessionFuture) throws java.lang.Exception
java.lang.Exceptionprotected void initializeSession(T session)
protected SessionPrivilegesChanged makePrivilegeChangeMessage(java.util.Set<java.lang.String> privileges)
protectedcreateSession(java.util.Properties properties, CallbackHandler callbackHandler)
callbackHandler - public void dispose()
dispose in class ServerConnectionprotected CallbackHandler createCallbackHandler(java.lang.Long callbackHandlerId)
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0