• Post Reply Bookmark Topic Watch Topic
  • New Topic

Monitor class in Java  RSS feed

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly Monitor.Pulse() method do in Java...??
 
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which Monitor class are you talking about? Java SE only has one Monitor class, javax.management.monitor.Monitor, and it does not have a Pulse() method (nor a pulse() method). In fact, I've checked the index of the Java SE Javadoc pages, and there is no Pulse() or pulse() method at all. So why don't you start by telling us which Monitor class this is? In other words, TellTheDetails.
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:In other words, TellTheDetails.

Or stick your arm in the nearest sphygmomanometer.
 
rohan yadav
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was also first initial thought, I m currently refactoring code, so i basicaaly dindint understand the code.. so I asked Here is code..



Or stick your arm in the nearest sphygmomanometer.
. And i dont need a such thing for such a small topic,but i bet you are carrying sphygmomanometer in your pocket that for sure
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us your import for Monitor? Because I still don't know which class it is.
 
Ranch Hand
Posts: 58
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C# has a Monitor class. Are you sure this isn't C# code ?
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like it is. In which case it seems like it works like Object.notify(), just like Monitor.PulseAll(Object) seems to work like Object.notifyAll().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!