Mercurial > hg > blitz_condensed
view src/org/dancres/blitz/RegTicketImpl.java @ 33:0b9265358617
Added tag 2.1.1 for changeset a77f0a9ed93c
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 12 Jun 2010 10:52:10 +0100 |
parents | 3dc0c5604566 |
children |
line wrap: on
line source
package org.dancres.blitz; import org.dancres.blitz.lease.SpaceUID; import org.dancres.blitz.notify.Registrar; /** Contains the necessary details to build an EventRegistration object. These details are internal source ID, initial sequence number and UID (which will be converted into a SpaceUID). The raw details are received from EventQueue via the Registrar interface. The details are then slightly massaged (convert UID to SpaceUID). This object is then returned to the caller who can then turn these details into a suitable EventRegistration object. */ class RegTicketImpl implements RegTicket, Registrar { private long theInternalSource; private long theInitialSequenceNum; private SpaceUID theUID; private long theExpirationTime; RegTicketImpl(long anExpirationTime) { theExpirationTime = anExpirationTime; } public void newRegistration(long aSourceId, long aSeqNum, SpaceUID aUID) { theInternalSource = aSourceId; theInitialSequenceNum = aSeqNum; theUID = aUID; } public SpaceUID getUID() { return theUID; } public long getSourceId() { return theInternalSource; } public long getSeqNum() { return theInitialSequenceNum; } public long getExpirationTime() { return theExpirationTime; } }