public class MyGatewayTransportFilter2 extends java.lang.Object implements GatewayTransportFilter, org.apache.geode.internal.cache.xmlcache.Declarable2, java.io.Serializable
| Constructor and Description |
|---|
MyGatewayTransportFilter2() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when the region containing this callback is closed or destroyed, when the cache is
closed, or when a callback is removed from a region using an
AttributesMutator. |
java.util.Properties |
getConfig() |
java.io.InputStream |
getInputStream(java.io.InputStream stream) |
java.io.OutputStream |
getOutputStream(java.io.OutputStream stream) |
void |
init(java.util.Properties props)
Initializes a user-defined object using the given properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic java.io.InputStream getInputStream(java.io.InputStream stream)
getInputStream in interface GatewayTransportFilterpublic java.io.OutputStream getOutputStream(java.io.OutputStream stream)
getOutputStream in interface GatewayTransportFilterpublic void close()
CacheCallbackAttributesMutator.
Implementations should cleanup any external resources such as database connections. Any runtime exceptions this method throws will be logged.
It is possible for this method to be called multiple times on a single callback instance, so implementations must be tolerant of this.
close in interface CacheCallbackRegionService.close(),
Region.close(),
Region.localDestroyRegion(),
Region.destroyRegion(),
AttributesMutatorpublic java.util.Properties getConfig()
getConfig in interface org.apache.geode.internal.cache.xmlcache.Declarable2public void init(java.util.Properties props)
DeclarableCache initialization to fail.init in interface Declarableprops - Contains the parameters declared in the declarative xml file.