summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/Subscriber.h
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2006-11-20 02:09:09 +0000
committerMatthew Newhook <matthew@zeroc.com>2006-11-20 02:09:09 +0000
commitd994d0d5549aa90a50559888a2c29f6b709ce70d (patch)
tree09a78e7f6bc71af7d2d99d3d9f0abaed0f991853 /cpp/src/IceStorm/Subscriber.h
parentminor fix (diff)
downloadice-d994d0d5549aa90a50559888a2c29f6b709ce70d.tar.bz2
ice-d994d0d5549aa90a50559888a2c29f6b709ce70d.tar.xz
ice-d994d0d5549aa90a50559888a2c29f6b709ce70d.zip
Added shutdown state.
Diffstat (limited to 'cpp/src/IceStorm/Subscriber.h')
-rw-r--r--cpp/src/IceStorm/Subscriber.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/IceStorm/Subscriber.h b/cpp/src/IceStorm/Subscriber.h
index 580bef03cbb..ba0502b43dc 100644
--- a/cpp/src/IceStorm/Subscriber.h
+++ b/cpp/src/IceStorm/Subscriber.h
@@ -47,6 +47,7 @@ public:
//
virtual bool flush() = 0;
virtual void destroy();
+ void shutdown();
//
// These methods must only be called by the SubscriberPool they
@@ -74,7 +75,8 @@ protected:
SubscriberStateOnline,
SubscriberStateFlushPending,
SubscriberStateOffline,
- SubscriberStateError
+ SubscriberStateError,
+ SubscriberStateShutdown
};
SubscriberState _state; // The subscriber state.
EventSeq _events; // The queue of events to send.