java.lang.Object
net.i2p.router.transport.udp.UDPPacket.PacketFactory
- All Implemented Interfaces:
TryCache.ObjectFactory<UDPPacket>
- Enclosing class:
UDPPacket
private static class UDPPacket.PacketFactoryextends Object implements TryCache.ObjectFactory<UDPPacket>
Factory for UDP packet caching. Provides new instances for the
TryCache.Field Summary
FieldsConstructor Summary
ConstructorsMethod Summary
All Methods
Field Details
context
I2P context for logging.
Constructor Details
PacketFactory
private PacketFactory()Creates packets for the reuse cache.
Method Details
newInstance
New instance.- Specified by:
newInstancein interfaceTryCache.ObjectFactory<UDPPacket>- Returns:
- a fresh, unreleased packet