Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3966c58bf7a893cc09d944bef1e6f2f7dddb6f24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package org.eclipse.tcf.debug.test.services;

import org.eclipse.tcf.debug.test.util.AbstractCache;

class WaitForEventCache<V> extends AbstractCache<V> implements IWaitForEventCache<V> {
    @Override
    protected void retrieve() { } // no-op - called by listener
    @Override
    protected void canceled() { } // no-op - no command sent
    
    public void eventReceived(V data) {
        if (!isValid()) {
            set(data, null, true); // notify listeners
        }
    }
}

Back to the top