APISonar


org.wildfly.clustering.web.infinispan.session.Time.Time

> org > wildfly > clustering > web > infinispan > session > Time > Time
org APIs wildfly APIs clustering APIs web APIs infinispan APIs session APIs Time APIs Time APIs

Example 1
public void isNew() {
        SessionMetaData metaData = new SimpleSessionMetaData();
        assertTrue(metaData.isNew());

        metaData.setLastAccessedTime(new Date());
        assertFalse(metaData.isNew());

        metaData = new SimpleSessionMetaData(new Date(), new Date(), new Time(0, TimeUnit.SECONDS));
        assertFalse(metaData.isNew());
    }