Package com.tangosol.net.topic
Class Subscriber.Channel.EmptyChannel
java.lang.Object
com.tangosol.net.topic.Subscriber.Channel.EmptyChannel
- All Implemented Interfaces:
Subscriber.Channel
- Enclosing interface:
Subscriber.Channel
A default empty channel implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.net.topic.Subscriber.Channel
Subscriber.Channel.EmptyChannel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturn the number of completed commit requests.Returns the first position polled by this subscriber.longReturns the timestamp when the first element was polled by this subscriber.getHead()Returns the current head position for the channel.intgetId()Returns the identifier for this channel.Returns the last position committed by this subscriber.Returns the last position polled by this subscriber.longReturns the timestamp when the last element was polled by this subscriber.Returns the last position received by this subscriber.intReturns a numeric representation of if the channel is owned by this subscriber where1represents true and0represents false.longgetPolls()Returns the number of elements polled by this subscriber.longReturn the number of completed receive requests.longReturn the number of completed receive requests.doubleReturn the fifteen-minute rate of completed receive requests.doubleReturn the five-minute rate of completed receive requests.doubleReturn the mean rate of completed receive requests.doubleReturn the one-minute rate of completed receive requests.booleanisEmpty()Returnstrueif the channel is empty.booleanisOwned()Returnstrueif the channel is owned by this subscriber.
-
Constructor Details
-
EmptyChannel
public EmptyChannel(int nId)
-
-
Method Details
-
getId
public int getId()Description copied from interface:Subscriber.ChannelReturns the identifier for this channel.- Specified by:
getIdin interfaceSubscriber.Channel- Returns:
- the identifier for this channel
-
getHead
Description copied from interface:Subscriber.ChannelReturns the current head position for the channel.- Specified by:
getHeadin interfaceSubscriber.Channel- Returns:
- the current head position for the channel
-
getLastCommit
Description copied from interface:Subscriber.ChannelReturns the last position committed by this subscriber.- Specified by:
getLastCommitin interfaceSubscriber.Channel- Returns:
- the last position committed by this subscriber
-
getCommitCount
public long getCommitCount()Description copied from interface:Subscriber.ChannelReturn the number of completed commit requests.- Specified by:
getCommitCountin interfaceSubscriber.Channel- Returns:
- the number of completed commit requests
-
getLastReceived
Description copied from interface:Subscriber.ChannelReturns the last position received by this subscriber.- Specified by:
getLastReceivedin interfaceSubscriber.Channel- Returns:
- the last position received by this subscriber
-
getReceiveCount
public long getReceiveCount()Description copied from interface:Subscriber.ChannelReturn the number of completed receive requests.- Specified by:
getReceiveCountin interfaceSubscriber.Channel- Returns:
- the number of completed receive requests
-
getPolls
public long getPolls()Description copied from interface:Subscriber.ChannelReturns the number of elements polled by this subscriber.- Specified by:
getPollsin interfaceSubscriber.Channel- Returns:
- the number of elements polled by this subscriber
-
getFirstPolled
Description copied from interface:Subscriber.ChannelReturns the first position polled by this subscriber.- Specified by:
getFirstPolledin interfaceSubscriber.Channel- Returns:
- the first position polled by this subscriber
-
getFirstPolledTimestamp
public long getFirstPolledTimestamp()Description copied from interface:Subscriber.ChannelReturns the timestamp when the first element was polled by this subscriber.- Specified by:
getFirstPolledTimestampin interfaceSubscriber.Channel- Returns:
- the timestamp when the first element was polled by this subscriber
-
getLastPolled
Description copied from interface:Subscriber.ChannelReturns the last position polled by this subscriber.- Specified by:
getLastPolledin interfaceSubscriber.Channel- Returns:
- the last position polled by this subscriber
-
getLastPolledTimestamp
public long getLastPolledTimestamp()Description copied from interface:Subscriber.ChannelReturns the timestamp when the last element was polled by this subscriber.- Specified by:
getLastPolledTimestampin interfaceSubscriber.Channel- Returns:
- the timestamp when the last element was polled by this subscriber
-
isEmpty
public boolean isEmpty()Description copied from interface:Subscriber.ChannelReturnstrueif the channel is empty.- Specified by:
isEmptyin interfaceSubscriber.Channel- Returns:
trueif the channel is empty
-
isOwned
public boolean isOwned()Description copied from interface:Subscriber.ChannelReturnstrueif the channel is owned by this subscriber.- Specified by:
isOwnedin interfaceSubscriber.Channel- Returns:
trueif the channel is owned by this subscriber
-
getOwnedCode
public int getOwnedCode()Description copied from interface:Subscriber.ChannelReturns a numeric representation of if the channel is owned by this subscriber where1represents true and0represents false.- Specified by:
getOwnedCodein interfaceSubscriber.Channel- Returns:
- a numeric representation of if the channel is owned by this subscriber
where
1represents true and0represents false
-
getReceived
public long getReceived()Description copied from interface:Subscriber.ChannelReturn the number of completed receive requests.- Specified by:
getReceivedin interfaceSubscriber.Channel- Returns:
- the number of completed receive requests
-
getReceivedMeanRate
public double getReceivedMeanRate()Description copied from interface:Subscriber.ChannelReturn the mean rate of completed receive requests.- Specified by:
getReceivedMeanRatein interfaceSubscriber.Channel- Returns:
- the mean rate of completed receive requests
-
getReceivedOneMinuteRate
public double getReceivedOneMinuteRate()Description copied from interface:Subscriber.ChannelReturn the one-minute rate of completed receive requests.- Specified by:
getReceivedOneMinuteRatein interfaceSubscriber.Channel- Returns:
- the one-minute rate of completed receive requests
-
getReceivedFiveMinuteRate
public double getReceivedFiveMinuteRate()Description copied from interface:Subscriber.ChannelReturn the five-minute rate of completed receive requests.- Specified by:
getReceivedFiveMinuteRatein interfaceSubscriber.Channel- Returns:
- the five-minute rate of completed receive requests
-
getReceivedFifteenMinuteRate
public double getReceivedFifteenMinuteRate()Description copied from interface:Subscriber.ChannelReturn the fifteen-minute rate of completed receive requests.- Specified by:
getReceivedFifteenMinuteRatein interfaceSubscriber.Channel- Returns:
- the fifteen-minute rate of completed receive requests
-