Package com.db4o.cs.internal
Class ServerMessageDispatcherImpl
- java.lang.Object
-
- com.db4o.cs.internal.ServerMessageDispatcherImpl
-
- All Implemented Interfaces:
ClientConnection
,MessageDispatcher
,ServerMessageDispatcher
,CommittedCallbackDispatcher
,java.lang.Runnable
public final class ServerMessageDispatcherImpl extends java.lang.Object implements ServerMessageDispatcher, java.lang.Runnable
-
-
Method Summary
-
-
-
Method Detail
-
close
public boolean close()
- Specified by:
close
in interfaceMessageDispatcher
- Specified by:
close
in interfaceServerMessageDispatcher
-
close
public boolean close(ShutdownMode mode)
- Specified by:
close
in interfaceServerMessageDispatcher
-
closeConnection
public void closeConnection()
- Specified by:
closeConnection
in interfaceServerMessageDispatcher
-
isMessageDispatcherAlive
public boolean isMessageDispatcherAlive()
- Specified by:
isMessageDispatcherAlive
in interfaceMessageDispatcher
-
transaction
public Transaction transaction()
- Specified by:
transaction
in interfaceServerMessageDispatcher
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
processMessage
public boolean processMessage(Msg message)
- Specified by:
processMessage
in interfaceServerMessageDispatcher
-
server
public ObjectServerImpl server()
- Specified by:
server
in interfaceServerMessageDispatcher
-
queryResultFinalized
public void queryResultFinalized(int queryResultID)
- Specified by:
queryResultFinalized
in interfaceServerMessageDispatcher
-
mapQueryResultToID
public void mapQueryResultToID(LazyClientObjectSetStub stub, int queryResultID)
- Specified by:
mapQueryResultToID
in interfaceServerMessageDispatcher
-
queryResultForID
public LazyClientObjectSetStub queryResultForID(int queryResultID)
- Specified by:
queryResultForID
in interfaceServerMessageDispatcher
-
switchToFile
public void switchToFile(MSwitchToFile message)
- Specified by:
switchToFile
in interfaceServerMessageDispatcher
-
switchToMainFile
public void switchToMainFile()
- Specified by:
switchToMainFile
in interfaceServerMessageDispatcher
-
useTransaction
public void useTransaction(MUseTransaction message)
- Specified by:
useTransaction
in interfaceServerMessageDispatcher
-
write
public boolean write(Msg msg)
- Specified by:
write
in interfaceMessageDispatcher
- Specified by:
write
in interfaceServerMessageDispatcher
-
socket
public Socket4Adapter socket()
- Specified by:
socket
in interfaceServerMessageDispatcher
-
name
public java.lang.String name()
- Specified by:
name
in interfaceClientConnection
-
setDispatcherName
public void setDispatcherName(java.lang.String name)
- Specified by:
setDispatcherName
in interfaceServerMessageDispatcher
-
dispatcherID
public int dispatcherID()
- Specified by:
dispatcherID
in interfaceServerMessageDispatcher
-
login
public void login()
- Specified by:
login
in interfaceServerMessageDispatcher
-
caresAboutCommitted
public boolean caresAboutCommitted()
- Specified by:
caresAboutCommitted
in interfaceServerMessageDispatcher
-
caresAboutCommitted
public void caresAboutCommitted(boolean care)
- Specified by:
caresAboutCommitted
in interfaceServerMessageDispatcher
-
committedInfo
public CallbackObjectInfoCollections committedInfo()
- Specified by:
committedInfo
in interfaceServerMessageDispatcher
-
dispatchCommitted
public void dispatchCommitted(CallbackObjectInfoCollections committedInfo)
- Specified by:
dispatchCommitted
in interfaceCommittedCallbackDispatcher
-
willDispatchCommitted
public boolean willDispatchCommitted()
- Specified by:
willDispatchCommitted
in interfaceCommittedCallbackDispatcher
-
classInfoHelper
public ClassInfoHelper classInfoHelper()
- Specified by:
classInfoHelper
in interfaceServerMessageDispatcher
-
messageReceived
public Event4<MessageEventArgs> messageReceived()
EventArgs => MessageEventArgs- Specified by:
messageReceived
in interfaceClientConnection
-
join
public void join() throws java.lang.InterruptedException
- Specified by:
join
in interfaceServerMessageDispatcher
- Throws:
java.lang.InterruptedException
-
-