Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.theupswell.appengine.counter.ext;
 
 
An extension of javax.servlet.http.HttpServlet that provides a default implementation to handle counter deletion via the Appengine task queue infrastructure. Note that this class must be wired into your web framework before it can be usable.
public class DefaultDeletionTaskHandler extends HttpServlet
	private final Logger logger = Logger.getLogger(this.getClass().getName());
No-args constructor for dependency-injection frameworks that easily can't handle constructor in a Servlet.
	{
	}

Required-args Constructor.

Parameters:
shardedCounterService An instance of com.theupswell.appengine.counter.service.ShardedCounterService for processing actual delete operations.
	public DefaultDeletionTaskHandler(final ShardedCounterService shardedCounterService)
	{
		Preconditions.checkNotNull(shardedCounterService);
		this. = shardedCounterService;
	}
	{
		Preconditions.checkNotNull(counterName);
		{
			.info(String.format("Deleting Counter: %s"counterName));
		}
	}

Setter to allow the shardedCounterService to be set.

Parameters:
shardedCounterService
	public void setShardedCounterService(final ShardedCounterService shardedCounterService)
	{
		Preconditions.checkNotNull(shardedCounterService);
		this. = shardedCounterService;
	}
New to GrepCode? Check out our FAQ X