com.sun.sgs.impl.service.channel
Class ChannelImpl.ChannelMessageInfo

java.lang.Object
  extended by com.sun.sgs.impl.service.channel.ChannelImpl.ChannelMessageInfo
All Implemented Interfaces:
ManagedObject, Serializable
Enclosing class:
ChannelImpl

static class ChannelImpl.ChannelMessageInfo
extends Object
implements ManagedObject, Serializable

Contains a saved channel message with its associated timestamp and expiration time.


Field Summary
(package private)  byte[] message
          The channel message.
(package private)  long timestamp
          The message timestamp.
 
Constructor Summary
ChannelImpl.ChannelMessageInfo(byte[] message, long timestamp)
          Constructs an instance with the specified message and timestamp.
 
Method Summary
(package private)  boolean isExpired()
          Returns true if the channel message has expired (that is, its expiration time has passed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

final byte[] message
The channel message.


timestamp

final long timestamp
The message timestamp.

Constructor Detail

ChannelImpl.ChannelMessageInfo

ChannelImpl.ChannelMessageInfo(byte[] message,
                               long timestamp)
Constructs an instance with the specified message and timestamp.

Method Detail

isExpired

boolean isExpired()
Returns true if the channel message has expired (that is, its expiration time has passed).


RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved