InetAddress function ( ) { synchronized ( this ) { if ( this . objects . containsKey ( this . orderedObjects . peek ( ) . address ) ) { return this . orderedObjects . peek ( ) . address ; } else { return null ; } } }
returns the most recently added inetaddress and returns null if the addresscache is empty.runs in o 1 time concode_field_sep Map<InetAddress,DListNode> objects concode_elem_sep ExecutorService threads concode_elem_sep long runRate concode_elem_sep long initialExpire concode_elem_sep DList orderedObjects concode_field_sep boolean offer concode_elem_sep InetAddress take concode_elem_sep boolean contains concode_elem_sep int size concode_elem_sep long getExpire concode_elem_sep boolean isEmpty concode_elem_sep Runnable removeExpired concode_elem_sep void close concode_elem_sep boolean remove concode_elem_sep InetAddress remove