mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-20 19:22:48 +00:00
28 lines
303 B
Java
28 lines
303 B
Java
package com.volmit.iris.util;
|
|
|
|
public abstract class SR implements Runnable, CancellableTask
|
|
{
|
|
private int id = 0;
|
|
|
|
public SR()
|
|
{
|
|
this(0);
|
|
}
|
|
|
|
public SR(int interval)
|
|
{
|
|
id = J.sr(this, interval);
|
|
}
|
|
|
|
@Override
|
|
public void cancel()
|
|
{
|
|
J.csr(id);
|
|
}
|
|
|
|
public int getId()
|
|
{
|
|
return id;
|
|
}
|
|
}
|