summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/LinkSubscriber.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2002-02-28 17:30:43 +0000
committerMatthew Newhook <matthew@zeroc.com>2002-02-28 17:30:43 +0000
commita0262246c57db3d224f2c6bc60b93b0af9ba091e (patch)
treee19a2b3ea3bddcd94c03e4fc5012fb4ad6a10328 /cpp/src/IceStorm/LinkSubscriber.cpp
parentfixes (diff)
downloadice-a0262246c57db3d224f2c6bc60b93b0af9ba091e.tar.bz2
ice-a0262246c57db3d224f2c6bc60b93b0af9ba091e.tar.xz
ice-a0262246c57db3d224f2c6bc60b93b0af9ba091e.zip
IceStorm changes
Diffstat (limited to 'cpp/src/IceStorm/LinkSubscriber.cpp')
-rw-r--r--cpp/src/IceStorm/LinkSubscriber.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/src/IceStorm/LinkSubscriber.cpp b/cpp/src/IceStorm/LinkSubscriber.cpp
index b04cfd8f9cc..b13ee7ec91e 100644
--- a/cpp/src/IceStorm/LinkSubscriber.cpp
+++ b/cpp/src/IceStorm/LinkSubscriber.cpp
@@ -54,6 +54,19 @@ LinkSubscriber::unsubscribe()
}
void
+LinkSubscriber::replace()
+{
+ IceUtil::Mutex::Lock sync(_stateMutex);
+ _state = StateReplaced;
+
+ if (_traceLevels->subscriber > 0)
+ {
+ Ice::Trace out(_traceLevels->logger, _traceLevels->subscriberCat);
+ out << "Replace " << _obj->ice_getIdentity();
+ }
+}
+
+void
LinkSubscriber::publish(const Event& event)
{
//