public abstract class ListenerDef
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ListenerDef.DistributionScope
Listener distribution scope
|
static class |
ListenerDef.TimeScope
Listener time scope
|
Constructor and Description |
---|
ListenerDef() |
Modifier and Type | Method and Description |
---|---|
static ListenerDef |
create()
Returns a new ListenerDef instance.
|
static ListenerDef |
create(ListenerDef.TimeScope timeScope)
Returns a new ListenerDef instance.
|
static ListenerDef |
create(ListenerDef.TimeScope timeScope,
ListenerDef.DistributionScope distributionScope)
Returns a new ListenerDef instance.
|
abstract ListenerDef.DistributionScope |
getDistributionScope()
Returns the distribution scope of the listener.
|
abstract ListenerDef.TimeScope |
getTimeScope()
Returns the time scope of the listener.
|
abstract ListenerDef |
setDistributionScope(ListenerDef.DistributionScope distributionScope)
Sets the distribution scope of the listener.
|
abstract ListenerDef |
setTimeScope(ListenerDef.TimeScope timeScope)
Sets the time scope of the listener.
|
public static ListenerDef create()
public static ListenerDef create(ListenerDef.TimeScope timeScope)
timeScope
- ListenerDef.TimeScope
ALL, SNAPSHOT, NEW, and NEW_EVENTSpublic static ListenerDef create(ListenerDef.TimeScope timeScope, ListenerDef.DistributionScope distributionScope)
timeScope
- ListenerDef.TimeScope
ALL, SNAPSHOT, NEW, or NEW_EVENTSdistributionScope
- ListenerDef.DistributionScope
DISTRIBUTED or NON_DISTRIBUTEDpublic abstract ListenerDef.TimeScope getTimeScope()
public abstract ListenerDef.DistributionScope getDistributionScope()
public abstract ListenerDef setDistributionScope(ListenerDef.DistributionScope distributionScope)
distributionScope
- whether entry is from local member or other memberspublic abstract ListenerDef setTimeScope(ListenerDef.TimeScope timeScope)
timeScope
- ALL, SNAPSHOT, NEW.Copyright (c) 2013 TIBCO Software Inc. All rights reserved.