Package org.bedework.synch
Class Synchling
- java.lang.Object
-
- org.bedework.synch.Synchling
-
- All Implemented Interfaces:
org.bedework.util.logging.Logged
public class Synchling extends Object implements org.bedework.util.logging.Logged
The synchling handles the processing of a single subscription when there is some activity.A synchling may be started to process a subscription as a the result of a callback notification for example from exchange or because a synch period has elapsed and it's time to refresh.
- Author:
- Mike Douglass
-
-
Constructor Summary
Constructors Constructor Description Synchling(SynchEngine syncher)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bedework.util.logging.BwLoggergetLogger()longgetSynchlingId()org.oasis_open.docs.ws_calendar.ns.soap.StatusTypehandleNotification(Notification<Notification.NotificationItem> note)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-
-
-
Constructor Detail
-
Synchling
public Synchling(SynchEngine syncher)
Constructor- Parameters:
syncher- the synch engine
-
-
Method Detail
-
getSynchlingId
public long getSynchlingId()
- Returns:
- unique id
-
handleNotification
public org.oasis_open.docs.ws_calendar.ns.soap.StatusType handleNotification(Notification<Notification.NotificationItem> note) throws SynchException
- Parameters:
note- notification- Returns:
- OK for all handled fine. ERROR - discard. WARN - retry.
- Throws:
SynchException
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()
- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged
-
-