com.hazelcast.client.impl.client
Class ClientPrincipal

java.lang.Object
  extended by com.hazelcast.client.impl.client.ClientPrincipal
All Implemented Interfaces:
Portable

public final class ClientPrincipal
extends Object
implements Portable


Constructor Summary
ClientPrincipal()
           
ClientPrincipal(String uuid, String ownerUuid)
           
 
Method Summary
 boolean equals(Object o)
           
 int getClassId()
          Returns class identifier for this portable class.
 int getFactoryId()
          Returns PortableFactory id for this portable class
 String getOwnerUuid()
           
 String getUuid()
           
 int hashCode()
           
 void readPortable(PortableReader reader)
          Read portable fields using PortableReader
 String toString()
           
 void writePortable(PortableWriter writer)
          Serialize this portable object using PortableWriter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientPrincipal

public ClientPrincipal()

ClientPrincipal

public ClientPrincipal(String uuid,
                       String ownerUuid)
Method Detail

getUuid

public String getUuid()

getOwnerUuid

public String getOwnerUuid()

getFactoryId

public int getFactoryId()
Description copied from interface: Portable
Returns PortableFactory id for this portable class

Specified by:
getFactoryId in interface Portable
Returns:
factory id

getClassId

public int getClassId()
Description copied from interface: Portable
Returns class identifier for this portable class. Class id should be unique per PortableFactory.

Specified by:
getClassId in interface Portable
Returns:
class id

writePortable

public void writePortable(PortableWriter writer)
                   throws IOException
Description copied from interface: Portable
Serialize this portable object using PortableWriter

Specified by:
writePortable in interface Portable
Parameters:
writer - PortableWriter
Throws:
IOException

readPortable

public void readPortable(PortableReader reader)
                  throws IOException
Description copied from interface: Portable
Read portable fields using PortableReader

Specified by:
readPortable in interface Portable
Parameters:
reader - PortableReader
Throws:
IOException

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.