package com.millipad.util;

import java.rmi.*;

public class RemoteBlockingStackImpl implements RemoteBlockingStack {

	BlockingStack stack;
	
	public RemoteBlockingStackImpl() {
		stack = new BlockingStack();
		}

	public RemoteBlockingStackImpl(int max) {
		stack = new BlockingStack(max);
		}

	private static void debug(Object obj) {
		Debug.print(RemoteBlockingStackImpl.class, obj);
		}

	public Object pop() throws RemoteException {return stack.pop();}

	public Object pop(long timeout) throws RemoteException {return stack.pop(timeout);}

	public Object push(Object value) throws RemoteException {return stack.push(value);}

	public Object push(Object value, long timeout) throws RemoteException {
		return stack.push(value, timeout);
		}

	}
