com.syncbuilder.sync
Interface SyncContext

All Known Implementing Classes:
SMContext

public abstract interface SyncContext

The SyncContext is a representation of the execution environment for a SyncHandler. It mostly provides access to configuration data and to logging facilities.

See Also:
SyncHandler, SyncSession, SyncServer

Method Summary
 SyncSession createSession()
          Factory method to create a new SyncSession object.
 int getMaxConcurrentSessions()
          Get the maximum number of concurrent sessions which can be handled by this kind of context.
 

Method Detail

createSession

public SyncSession createSession()
Factory method to create a new SyncSession object. The object which will actually be returned is a specialization of SyncSession that may cooperate with the SyncContext.

getMaxConcurrentSessions

public int getMaxConcurrentSessions()
Get the maximum number of concurrent sessions which can be handled by this kind of context. This will typically be set to 1 in a desktop setting, whereas a value of Integer.MAX_VALUE would be appropriate for a server.


This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.