net.i2p.router
Class TunnelSettings
java.lang.Object
net.i2p.data.DataStructureImpl
net.i2p.router.TunnelSettings
- All Implemented Interfaces:
- DataStructure
public class TunnelSettings
- extends DataStructureImpl
Wrap up the settings specified for a particular tunnel
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TunnelSettings
public TunnelSettings(I2PAppContext context)
getDepth
public int getDepth()
setDepth
public void setDepth(int depth)
getMessagesPerMinuteAverage
public long getMessagesPerMinuteAverage()
getMessagesPerMinutePeak
public long getMessagesPerMinutePeak()
getBytesPerMinuteAverage
public long getBytesPerMinuteAverage()
getBytesPerMinutePeak
public long getBytesPerMinutePeak()
setMessagesPerMinuteAverage
public void setMessagesPerMinuteAverage(long msgs)
setMessagesPerMinutePeak
public void setMessagesPerMinutePeak(long msgs)
setBytesPerMinuteAverage
public void setBytesPerMinuteAverage(long bytes)
setBytesPerMinutePeak
public void setBytesPerMinutePeak(long bytes)
getIncludeDummy
public boolean getIncludeDummy()
setIncludeDummy
public void setIncludeDummy(boolean include)
getReorder
public boolean getReorder()
setReorder
public void setReorder(boolean reorder)
getExpiration
public long getExpiration()
setExpiration
public void setExpiration(long expiration)
getCreated
public long getCreated()
readBytes
public void readBytes(java.io.InputStream in)
throws DataFormatException,
java.io.IOException
- Description copied from interface:
DataStructure
- Load up the current object with data from the given stream. Data loaded
this way must match the I2P data structure specification.
- Parameters:
in
- stream to read from
- Throws:
DataFormatException
- if the data is improperly formatted
java.io.IOException
- if there was a problem reading the stream
writeBytes
public void writeBytes(java.io.OutputStream out)
throws DataFormatException,
java.io.IOException
- Description copied from interface:
DataStructure
- Write out the data structure to the stream, using the format defined in the
I2P data structure specification.
- Parameters:
out
- stream to write to
- Throws:
DataFormatException
- if the data was incomplete or not yet ready to be written
java.io.IOException
- if there was a problem writing to the stream
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object