Class IpResourceReserve
java.lang.Object
ru.bitel.oss.systems.inventory.resource.common.bean.IpResourceReserve
-
Constructor Summary
ConstructorDescriptionIpResourceReserve
(int ipResourceId, byte[] address, long timeout) Deprecated.IpResourceReserve
(int ipResourceId, byte[] address, short prefixLength, long timeout) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
int
short
long
long
Возвращает время, после которого данный резерв нужно освободить.void
setAddress
(byte[] address) void
setIpResourceId
(int ipResourceId) void
setPrefixLength
(short prefixLength) void
setReserveTime
(long reserveTime) void
setTimeout
(long timeout)
-
Constructor Details
-
IpResourceReserve
public IpResourceReserve(int ipResourceId, byte[] address, short prefixLength, long timeout) - Parameters:
ipResourceId
-address
-prefixLength
- 32 for ipv4timeout
-
-
IpResourceReserve
Deprecated.- Parameters:
ipResourceId
-address
-timeout
-
-
-
Method Details
-
getIpResourceId
public int getIpResourceId() -
setIpResourceId
public void setIpResourceId(int ipResourceId) -
getAddress
public byte[] getAddress() -
setAddress
public void setAddress(byte[] address) -
getPrefixLength
public short getPrefixLength() -
setPrefixLength
public void setPrefixLength(short prefixLength) -
getTimeout
public long getTimeout()Возвращает время, после которого данный резерв нужно освободить.- Returns:
-
setTimeout
public void setTimeout(long timeout) -
getReserveTime
public long getReserveTime() -
setReserveTime
public void setReserveTime(long reserveTime)
-
IpResourceReserve(int, byte[], short, long)