Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.agilecoders.wicket.logging;

Defines all supported collection types.

Author(s):
miha
 
 public enum CollectionType {
    
each message will be sent to the backend directly
    Single,

    
after a configurable (defaults.collectionTimer) amount of time all queued messages will be sent to backend
    Timer,

    
sends all messages before unload event is fired on client side

Since:
0.1.1
    Unload,

    
stores all messages in local storage and sends them to server if client isn't busy.

Since:
0.1.3
    LocalStorage,

    
after a configurable (defaults.maxQueueSize) size of queue all queued messages will be sent to backend
    Size;

    

Returns:
collection type as string
    public String asString() {
        return name().toLowerCase();
    }
    @Override
    public String toString() {
        return asString();
    }
New to GrepCode? Check out our FAQ X