AeroGear SimplePush Server Protocol 0.11.0

org.jboss.aerogear.simplepush.protocol.impl
Class AckImpl

java.lang.Object
  extended by org.jboss.aerogear.simplepush.protocol.impl.AckImpl
All Implemented Interfaces:
Ack

public class AckImpl
extends Object
implements Ack

Concrete Ack implementation. This implementation considers only the channelId for hashcode/equals contract. If required to take the version into consideration an manual call of getVersion is required.


Constructor Summary
AckImpl(String channelId, long version)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getChannelId()
          Returns the channel id for this ack.
 long getVersion()
          Returns the version for this ack.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AckImpl

public AckImpl(String channelId,
               long version)
Method Detail

getChannelId

public String getChannelId()
Description copied from interface: Ack
Returns the channel id for this ack.

Specified by:
getChannelId in interface Ack
Returns:
String the channel id for this ack.

getVersion

public long getVersion()
Description copied from interface: Ack
Returns the version for this ack.

Specified by:
getVersion in interface Ack
Returns:
String the version for this ack.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

AeroGear SimplePush Server Protocol 0.11.0

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.