@Test public void testFlowBasedObject() { final DefaultFlowEntry entry = new DefaultFlowEntry(new IntentTestsMocks.MockFlowRule(1)); assertThat(entry.priority(), is(1)); assertThat(entry.appId(), is((short) 0)); assertThat(entry.lastSeen(), greaterThan(System.currentTimeMillis() - TimeUnit.MILLISECONDS.convert(1, TimeUnit.SECONDS))); }
@Override public long lastSeen() { return lastSeen; }
DefaultFlowEntry extends DefaultFlowRule implements StoredFlowEntry { @Override public long lastSeen() { return lastSeen; } }
DefaultFlowEntry extends DefaultFlowRule implements StoredFlowEntry { @Override public long lastSeen() { return lastSeen; } DefaultFlowEntry(FlowRule rule, FlowEntryState state,
            long life, long packets, long bytes);  DefaultFlowEntry(FlowRule rule);  DefaultFlowEntry(FlowRule rule, int errType, int errCode); }
DefaultFlowEntry extends DefaultFlowRule implements StoredFlowEntry { @Override public long lastSeen() { return lastSeen; } DefaultFlowEntry(FlowRule rule, FlowEntryState state,
            long life, long packets, long bytes);  DefaultFlowEntry(FlowRule rule);  DefaultFlowEntry(FlowRule rule, int errType, int errCode); @Override long life(); @Override long packets(); @Override long bytes(); @Override FlowEntryState state(); @Override long lastSeen(); @Override void setLastSeen(); @Override void setState(FlowEntryState newState); @Override void setLife(long life); @Override void setPackets(long packets); @Override void setBytes(long bytes); @Override int errType(); @Override int errCode(); @Override String toString(); }
DefaultFlowEntry extends DefaultFlowRule implements StoredFlowEntry { @Override public long lastSeen() { return lastSeen; } DefaultFlowEntry(FlowRule rule, FlowEntryState state,
            long life, long packets, long bytes);  DefaultFlowEntry(FlowRule rule);  DefaultFlowEntry(FlowRule rule, int errType, int errCode); @Override long life(); @Override long packets(); @Override long bytes(); @Override FlowEntryState state(); @Override long lastSeen(); @Override void setLastSeen(); @Override void setState(FlowEntryState newState); @Override void setLife(long life); @Override void setPackets(long packets); @Override void setBytes(long bytes); @Override int errType(); @Override int errCode(); @Override String toString();  }