Package org.infinispan.xsite.events
Class XSiteEventSender
java.lang.Object
org.infinispan.xsite.events.XSiteEventSender
- All Implemented Interfaces:
AutoCloseable
A collector of events to be sent to the remote site.
This class implements AutoCloseable
so it can be used with try-with-resources. The close()
methods
sends the events.
- Since:
- 15.0
-
Constructor Summary
ConstructorDescriptionXSiteEventSender
(BiConsumer<org.infinispan.xsite.XSiteBackup, XSiteRemoteEventCommand> sender) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventToSite
(ByteString site, XSiteEvent event) void
close()
-
Constructor Details
-
XSiteEventSender
public XSiteEventSender(BiConsumer<org.infinispan.xsite.XSiteBackup, XSiteRemoteEventCommand> sender)
-
-
Method Details
-
addEventToSite
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-