1.0.9 • Published 2 years ago

stateless_timer v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Install stateless_timer package by usig:

npm i stateless_timer

Require package in your Project by:

const {Timer} = require('stateless_timer');

Call it constartustor use Redis Connection,Activemq Connection and queue_name as a perametar e.g:

const myobj =new Timer(redis_connection,amq_conection,"agent-manag6");

It hava differant funtions e.g:

For start a timer you can use start method:

start(id: string, delay: number, type: TimerType, data: any) which hava id,delay, timerType ('CUSTOMER_INACTIVITY' etc),and any data it it may pass a null object

For stop a timer you can use stop method:

stop(id: string, type: TimerType) id and timerType ('CUSTOMER_INACTIVITY' etc) is a perameter for it

For check status of timer you can use isRunning method:

isRunnig(id: string, type: TimerType) id and timerType ('CUSTOMER_INACTIVITY' etc) is a perameter for it it return a boolean value true if timer is still exist else false

1.0.2

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago