|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A multicast address lease. This object represents a lease that allows a set of multicast addresses to be used for a period of time.
| Method Summary | |
AddressSet |
getAddresses()
Gets the multicast addresses associated with this lease. |
int |
getDuration()
Gets the duration of this lease. |
boolean |
getReleased()
Returns true if the lease has been released. |
Scope |
getScope()
Gets the Scope associated with this lease. |
java.util.Date |
getStartTime()
Gets the start time of this lease. |
void |
release()
Releases this lease. |
void |
setDuration(int requestedDuration,
int requiredDuration)
Requests a change in the duration of this lease. |
void |
setStartTime(java.util.Date requestedStartTime,
java.util.Date requiredStartTime)
Requests a change in the start time of this lease. |
| Method Detail |
public AddressSet getAddresses()
throws AddressAllocationException
AddressSet representing the multicast
addresses associated with this lease (null if unknown)AddressAllocationException - if an error occurs
public java.util.Date getStartTime()
throws AddressAllocationException
AddressAllocationException - if an error occurs
public int getDuration()
throws AddressAllocationException
AddressAllocationException - if an error occurs
public Scope getScope()
throws AddressAllocationException
Scope associated with this lease
(null if unknown)AddressAllocationException - if an error occurs
public void setStartTime(java.util.Date requestedStartTime,
java.util.Date requiredStartTime)
throws AddressAllocationException
requestedStartTime - the requested start time (null if now)requiredStartTime - the latest acceptable start time (null if now)AddressAllocationException - if the request could not
be satisfied
public void setDuration(int requestedDuration,
int requiredDuration)
throws AddressAllocationException
requestedDuration - the requested duration in seconds
(-1 if indefinite)requiredDuration - the required duration in seconds
(-1 if indefinite)AddressAllocationException - if the request could not
be satisfied
public boolean getReleased()
throws AddressAllocationException
true if the lease has been released.true if the lease has been released,
false otherwiseAddressAllocationException - if an error occurs
public void release()
throws AddressAllocationException
getReleased method will
return true. Other methods may throw exceptions.AddressAllocationException - if the request could not
be satisfied
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.