View Javadoc

1   package com.atlassian.sal.api.events;
2   
3   import javax.annotation.concurrent.Immutable;
4   import javax.servlet.http.HttpSessionListener;
5   
6   /**
7    * Represents an event published when a http session is destroyed.  Implementers should fire this event accordingly.
8    * @see HttpSessionListener
9    */
10  @Immutable
11  public class SessionDestroyedEvent extends AbstractSessionEvent
12  {
13      private SessionDestroyedEvent(final String sessionId, final String userName)
14      {
15          super(sessionId, userName);
16      }
17  
18      public static Builder builder()
19      {
20          return new Builder();
21      }
22  
23      public static class Builder extends AbstractSessionEvent.Builder
24      {
25          private Builder()
26          {
27          }
28  
29          public SessionDestroyedEvent build()
30          {
31              return new SessionDestroyedEvent(sessionId, userName);
32          }
33      }
34  }
35